import { createRoot } from 'react-dom/client'
import App from './App.tsx'
import './index.css'
import 'tdesign-react/es/style/index.css';
import { Provider } from 'react-redux'//使用仓库的api
import { store, persistor } from './redux/stroe.tsx'//导入仓库
import { PersistGate } from 'redux-persist/integration/react'//持久化api

createRoot(document.getElementById('root')!).render(
  <Provider store={store}>
    <PersistGate loading={null} persistor={persistor}>
      <App />
    </PersistGate>
  </Provider>,
)